package com.yejiali.backend.entity;
 import java.util.Date;
import java.io.Serializable;

 import com.baomidou.mybatisplus.annotation.IdType;
 import lombok.AllArgsConstructor;
 import lombok.Data;
 import lombok.NoArgsConstructor;
 import com.baomidou.mybatisplus.annotation.TableId;
 import com.baomidou.mybatisplus.annotation.TableName;
 /**
 * 消息表(Messages)表实体类
 *
 * @author yejiali
 * @since 2025-08-22 14:43:36
 */
 @SuppressWarnings("serial")
 @Data
 @AllArgsConstructor
 @NoArgsConstructor
 @TableName("messages")
 public class Messages  {
//消息id
@TableId(type = IdType.AUTO)
 private Long messageId;
//发送者id
 private Long senderId;
//接收者id
 private Long receiverId;
//消息内容
 private String content;
//消息类型(1 私信/0 系统)
 private Integer messageType;
//发送时间
 private Date sendTime;
//逻辑删除
 private Integer isDeleted;
 }


